package com.tgy.admin.Service;

import com.tgy.page.PageQuery;
import com.tgy.pojo.BlogCategory;
import com.tgy.result.GraceJSONResult;
import com.tgy.result.LayuiTableResult;
import com.tgy.vo.BlogCategoryVo;

import java.util.List;

/**
 * @author tianguiyin
 * @version 1.0
 * @date 2022/6/21 21:04
 *
 * 后台用户业务接口
 */
public interface CategoryService {
    LayuiTableResult getBlogCategoryList(BlogCategory bo, PageQuery pageQuery);

    GraceJSONResult addBlogCategory(BlogCategory BlogCategory);

    GraceJSONResult updateBlogCategory(BlogCategory BlogCategory);

    GraceJSONResult delBlogCategory(String id);

    GraceJSONResult delBlogCategoryIds(List<String> ids);

    GraceJSONResult getBlogCategoryById(String id);

    LayuiTableResult getAllSysRoleList(String userId, PageQuery pageQuery);

    List<BlogCategoryVo> getCategoryList(String articleId);
}
